package ua.kharkov.knure.dereza.summarytask4.command;

import java.io.Serializable;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

/**
 * Main interface for the Command pattern implementation
 * 
 * @author dereza
 *
 */
public abstract class Command implements Serializable{
	
	private static final long serialVersionUID = 3112385075201767834L;

	/**
	 * Execution method for command
	 * 
	 * @param request
	 * @param response
	 * @return Address to go once the command is executed
	 */
	public abstract String execute(HttpServletRequest req, HttpServletResponse res);
}
